package com.goldsign.pay.provider.accountbase.dao;

import com.goldsign.pay.provider.accountbase.vo.AccountInfoDO;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

@Mapper
public interface AccountbaseDao {

	/**
	 * 插入账户信息
	 * @param accountInfo
	 * @return
	 * @throws SQLException
	 */
	int insertAccountInfo(AccountInfoDO accountInfo) throws SQLException, Exception;
	
	/**
	 * 根据账户编号查询账户信息
	 * @param accountNo
	 * @return
	 * @throws SQLException
	 */
	AccountInfoDO getAccountInfo(String accountNo) throws SQLException, Exception;
	
	/**
	 * 根据用户编号查询账户信息列表
	 * @param userNo
	 * @return
	 * @throws SQLException
	 */
	List<AccountInfoDO> listAccountInfo(String userNo) throws SQLException, Exception;
	

}
